package com.example.edupublisher.service.imp;

import com.example.edupublisher.bean.CourseReviewStats;
import com.example.edupublisher.mapper.CourseStatsMapper;
import com.example.edupublisher.service.CourseStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseStatsServiceImpl implements CourseStatsService{
    @Autowired
    private CourseStatsMapper courseStatsMapper;

    @Override
    public List<CourseReviewStats> getCourseReviewStats(Integer date) {
        return courseStatsMapper.selectCourseReviewStats(date);
    }
}
